# FROM node:alpine
# RUN mkdir -p /home/app-view
# WORKDIR /home/app-view
# COPY . /home/app-view
# RUN npm  install
# RUN npm   build

FROM nginx:latest
RUN mkdir -p /home/app-view
WORKDIR /home/app-view

COPY dist /home/app-view
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
RUN chown -R nginx:nginx /home/app-view